package com.chongqing.shiro.mapper;

import com.chongqing.shiro.model.entity.Role;
import com.chongqing.shiro.model.entity.User;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    Set<String> findRoleByUserId(String userId);

    List<Role> selectRoles(Role role);

    int updateStatusBatch(Map<String, Object> params);

    int updateByRoleId(Map<String, Object> params);
}